package edu.sctu.zhangwang.month201505.day20150517;

/**
 * Created by user10 on 2015/5/17.
 */
public class NoteMain {
    public static void main(String[] args) {
        Note note = new Note("qq邮箱","10086","08210031");
        NoteOne noteOne = new NoteOne("小明",23,note);
        System.out.println("姓名："+noteOne.getname()+"年龄："+noteOne.getAge());
        System.out.println(noteOne.getCom());


        noteOne.setAge(18);
        Note note1 = new Note("139邮箱","10010","123456");
        noteOne.setCom(note1);
        System.out.println("姓名："+noteOne.getname()+"年龄："+noteOne.getAge());
        System.out.print(noteOne.getCom());
    }



}
